var token = localStorage.getItem('tok');
$.ajax({
    type: "GET",
    url: $host+'/api/open/config/versionList',
    data: {
        page:1,
        rows:5
    },
    async: true,
    dataType:'json',
    success: function(result){
        var data = result.data;
        var str="";
        for(var i=0;i<data.length;i++){
            var timer=new Date(parseInt(data[i].createTime)).toLocaleString();　
            str+=`<div class="info">
            <span>日期：${timer}</span>
            <span>更新版本：${data[i].title}</span>
            <p>版本说明：${data[i].content}</p>
        </div>`
        }
        $(".content").html(str)
    },
    error:function(){
        console.log('版本信息接口有误')
    }
})
//点击返回
$('.bbxxfh').click(function(){
    window.location.href="setup.html?token="+token;
})